# CMakeLists.txt
# Alan Heirich 14 December 2010
#

# Prerequisites: boost, opencl
# environment variable ATISTREAMSDKROOT should point to the opencl directory
# on Windows, boost should be installed in c:/boost

cmake_minimum_required( VERSION 2.6 )

project( PipelineKit_project )

set( OPENCL_ROOT $ENV{ATISTREAMSDKROOT} )

# Windows
if( ${WIN32} )
include_directories( /cygdrive/c/boost/ )
set( STRINGIFY "stringify/stringify.exe" )
set( EXECUTABLE pcompiler )
include_directories( ${OPENCL_ROOT}/include/ )
link_directories( ${OPENCL_ROOT}/lib/x86/ ${OPENCL_ROOT_x86}/lib/x86/ )
add_definitions( -D_WIN32 ) 

# Mac OS
elseif( ${APPLE} )
set( STRINGIFY "stringify/stringify" )
set( EXECUTABLE pcompiler )
include_directories( ${OPENCL_ROOT}/Headers )
link_directories( ${OPENCL_ROOT} )

# Linux
elseif( ${UNIX} )
set( STRINGIFY "stringify/stringify" )
set( EXECUTABLE pcompiler )
include_directories( ${OPENCL_ROOT}/include/ )
link_directories( ${OPENCL_ROOT}/lib/x86_64/ )

endif()


add_subdirectory( stringify )
add_subdirectory( compiler )
add_subdirectory( test )
